//commonJS
const m = require('./5_模块化')
console.log(m);

//ECMAScript  在package.json中设置type属性取值module
//默认
import obj from './5_模块化.js'
console.log(obj)
//命名
import { } from './5_模块化.js'